package com.example.core.testDemo.utils;

/**
 * @author zhangzhaoyang
 * @描述 用来返回的封装类
 * @类名 Result
 * @日期 2019/9/17
 * @时间 14:48
 * @作者 zhangzhaoyang
 */
public class Result {
//状态吗
    private Integer code;
//    消息
    private String messege;
//    数据对象
    private Object result;
//    数量
    private int count;
//    数据
    private Object data;

public Result(){

}
    public Result(Boolean success, Integer code, String messege) {
        super();
        this.code = code;
        this.messege = messege;
    }

    public Result(Boolean success, Integer code, Object result) {
        super();
        this.code = code;
        this.result = result;
    }

    public Result(Boolean success,Integer code, String messege, Object result) {
    super();
    this.code = code;
        this.messege = messege;
        this.result = result;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessege() {
        return messege;
    }

    public void setMessege(String messege) {
        this.messege = messege;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
